package yns.springboot.guide.demo.configure.data.redis;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class JedisShardInfoConfigure {
	
	@Value("${redis.jedis.jedisShardInfo}")
	private String jedisShardInfo;
	
	@Value("${redis.jedis.jedisShardInfo.pool.maxTotal}")
	private String maxTotal;
	
	@Value("${redis.jedis.jedisShardInfo.pool.maxIdle}")
	private String maxIdle;

	@Value("${redis.jedis.jedisShardInfo.pool.maxWait}")
	private String maxWait;
	
	@Value("${redis.jedis.jedisShardInfo.pool.minEvictableIdle}")
	private String minEvictableIdle;
	
	@Value("${redis.jedis.jedisShardInfo.pool.numTestsPerEvictionRun}")
	private String numTestsPerEvictionRun;

	@Value("${redis.jedis.jedisShardInfo.pool.timeBetweenEvictionRunsMillis}")
	private String timeBetweenEvictionRunsMillis;
	
	@Value("${redis.jedis.jedisShardInfo.pool.blockWhenExhausted}")
	private String blockWhenExhausted;

	public String getJedisShardInfo() {
		return jedisShardInfo;
	}

	public void setJedisShardInfo(String jedisShardInfo) {
		this.jedisShardInfo = jedisShardInfo;
	}

	public String getMaxTotal() {
		return maxTotal;
	}

	public void setMaxTotal(String maxTotal) {
		this.maxTotal = maxTotal;
	}

	public String getMaxIdle() {
		return maxIdle;
	}

	public void setMaxIdle(String maxIdle) {
		this.maxIdle = maxIdle;
	}

	public String getMaxWait() {
		return maxWait;
	}

	public void setMaxWait(String maxWait) {
		this.maxWait = maxWait;
	}

	public String getMinEvictableIdle() {
		return minEvictableIdle;
	}

	public void setMinEvictableIdle(String minEvictableIdle) {
		this.minEvictableIdle = minEvictableIdle;
	}

	public String getNumTestsPerEvictionRun() {
		return numTestsPerEvictionRun;
	}

	public void setNumTestsPerEvictionRun(String numTestsPerEvictionRun) {
		this.numTestsPerEvictionRun = numTestsPerEvictionRun;
	}

	public String getTimeBetweenEvictionRunsMillis() {
		return timeBetweenEvictionRunsMillis;
	}

	public void setTimeBetweenEvictionRunsMillis(String timeBetweenEvictionRunsMillis) {
		this.timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis;
	}

	public String getBlockWhenExhausted() {
		return blockWhenExhausted;
	}

	public void setBlockWhenExhausted(String blockWhenExhausted) {
		this.blockWhenExhausted = blockWhenExhausted;
	}
	

	

}
